//index.js

Page({
  data: {
    banners:[]
  },

  onLoad(){
    wx.request({
      url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata',
      success:(res) => {
        console.log(res.data);
        const {message} = res.data;
        this.setData({
          banners: message
        })
      }
    })
  },

  toshopList(){
    wx.navigateTo({
      url: '../shoplist/shoplist',
    })
  }
})

